#ifndef DINGDANDETAILWIDGET_H
#define DINGDANDETAILWIDGET_H

#include <QDialog>
#include "salemodel.h"
#include "dingdan.h"
#include "dingdanservice.h"

namespace Ui {
class DingdanDetailWidget;
}

class DingdanDetailWidget : public QDialog
{
    Q_OBJECT

public:
    explicit DingdanDetailWidget(QWidget *parent = nullptr);
    ~DingdanDetailWidget();

    void showWithDingdanId(QString dingdanId);

private:
    void initValue();

    void setSelectionRow();

    Ui::DingdanDetailWidget *ui;

    SaleModel *model;

    Dingdan *dingdan;

    DingdanService dingdanService;
};

#endif // DINGDANDETAILWIDGET_H
